home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hobby PC 13
/
Hobby PC 13.iso
/
assets
/
Asset Library
/
Dynamic HTML Utilities
/
Browser Sniffer with Test Output
/
browsersniftest.txt
< prev
next >
Wrap
Text File
|
2001-04-09
|
4KB
|
96 lines
<DIV ID="sqBrowserSnifftest">
<PRE>
// Ultimate client-side JavaScript client sniff.
// (C) Netscape Communications 1998. Permission granted to reuse and distribute.
// Revised 20 April 98 to add is.nav4up and is.ie4up (see below).
// Everything you always wanted to know about your JavaScript client
// but were afraid to ask ... "Is" is the constructor function for "is" object,
// which has properties indicating:
// (1) browser vendor:
// is.nav, is.ie, is.opera
// (2) browser version number:
// is.major (integer indicating major version number: 2, 3, 4 ...)
// is.minor (float indicating full version number: 2.02, 3.01, 4.04 ...)
// (3) browser vendor AND major version number
// is.nav2, is.nav3, is.nav4, is.nav4up, is.ie3, is.ie4, is.ie4up
// (4) JavaScript version number:
// is.js (float indicating full JavaScript version number: 1, 1.1, 1.2 ...)
// (5) OS platform and version:
// is.win, is.win16, is.win32, is.win31, is.win95, is.winnt, is.win98
// is.os2
// is.mac, is.mac68k, is.macppc
// is.unix
// is.sun, is.sun4, is.sun5, is.suni86
// is.irix, is.irix5, is.irix6
// is.hpux, is.hpux9, is.hpux10
// is.aix, is.aix1, is.aix2, is.aix3, is.aix4
// is.linux, is.sco, is.unixware, is.mpras, is.reliant
// is.dec, is.sinix, is.freebsd, is.bsd
// is.vms
//
// See http://home.kiss.de/~i_thum/JS_tutorial/bstat/navobj.html
// for a detailed list of userAgent strings.
//
// Note: you don't want your Nav4 or IE4 code to "turn off" or
// stop working when Nav5 and IE5 (or later) are released, so
// in conditional code forks, use is.nav4up ("Nav4 or greater")
// and is.ie4up ("IE4 or greater") instead of is.nav4 or is.ie4
// to check version in code which you want to work on future
// versions.
</PRE>
<PRE>
<SCRIPT>
document.write("<BR>is.nav="+is.nav);
document.write("<BR>is.major="+is.major);
document.write("<BR>is.minor="+is.minor);
document.write("<BR>is.nav2="+is.nav2);
document.write("<BR>is.nav3="+is.nav3);
document.write("<BR>is.nav4="+is.nav4);
document.write("<BR>is.nav4up="+is.nav4up);
document.write("<BR>is.navonly="+is.navonly);
document.write("<BR>is.ie="+is.ie);
document.write("<BR>is.ie3="+is.ie3);
document.write("<BR>is.ie4="+is.ie4);
document.write("<BR>is.ie4up="+is.ie4up);
document.write("<BR>is.opera="+is.opera);
document.write("<BR>is.js="+is.js);
document.write("<BR>is.win="+is.win);
document.write("<BR>is.win95="+is.win95);
document.write("<BR>is.win16="+is.win16);
document.write("<BR>is.win31="+is.win31);
document.write("<BR>is.win98="+is.win98);
document.write("<BR>is.winnt="+is.winnt);
document.write("<BR>is.win32="+is.win32);
document.write("<BR>is.os2="+is.os2);
document.write("<BR>is.mac68k="+is.mac68k);
document.write("<BR>is.macppc="+is.macppc);
document.write("<BR>is.sun="+is.sun);
document.write("<BR>is.sun4="+is.sun4);
document.write("<BR>is.sun5="+is.sun5);
document.write("<BR>is.suni86="+is.suni86);
document.write("<BR>is.irix="+is.irix);
document.write("<BR>is.irix5="+is.irix5);
document.write("<BR>is.irix6="+is.irix6);
document.write("<BR>is.hpux="+is.hpux);
document.write("<BR>is.hpux9="+is.hpux9);
document.write("<BR>is.hpux10="+is.hpux10);
document.write("<BR>is.aix="+is.aix);
document.write("<BR>is.aix1="+is.aix1);
document.write("<BR>is.aix2="+is.aix2);
document.write("<BR>is.aix3="+is.aix3);
document.write("<BR>is.aix4="+is.aix4);
document.write("<BR>is.linux="+is.linux);
document.write("<BR>is.sco="+is.sco);
document.write("<BR>is.unixware="+is.unixware);
document.write("<BR>is.mpras="+is.mpras);
document.write("<BR>is.dec="+is.dec);
document.write("<BR>is.sinix="+is.sinix);
document.write("<BR>is.freebsd="+is.freebsd);
document.write("<BR>is.bsd="+is.bsd);
document.write("<BR>is.unix="+is.unix);
document.write("<BR>is.vms="+is.vms);
</SCRIPT>
</PRE>
</DIV>